{% extends "pr_j/base.html" %}
{% load blurb %}

{% block title %}{{ block.super }} | {% if concept %}Concept {% endif %}Projects{% endblock %}

{% block article %}
    <h6><a href="{% url cm_s_main %}">Home</a> &raquo;</h6>
    <h1>{% if concept %}Concept {% endif %}Projects</h1>

    {% if concept %}
	   {% blurb "concept_projects" %}
    {% else %}
	   {% blurb "projects" %}
	{% endif %}
	
    {% if projects %}
        {% for project in projects %}
        <div class="section2" id="project-{{ project.slug }}">
            <div class="header"><h1><a href="{{ project.get_absolute_url }}">{{ project.title }}</a></h1></div>
            <div class="article">
                {% if project.image %}<p class="float-left"><img src="{{ project.image.url }}" alt="{{ project.title }}"></p>{% endif %}
                {{ project.summary|safe }}
            </div>
        </div>
		<hr>
        {% endfor %}
		{% include "includes/call_to_action.html" %}
    {% else %}
       <p>No projects yet. <a href="{% url pr_j_admin_main %}">Create some</a>.</p>
    {% endif %}
	
	
{% endblock %}